9f5fe860bd6603ee5d8c57ab4ed83b412abf8973,platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.java,PositionPanel,getPositionText,#Editor#,147
Before Change
appendLogicalPosition(caret, message);
if (selectionModel.hasSelection()) {
int len = Math.abs(selectionModel.getSelectionStart() - selectionModel.getSelectionEnd());
if (len != 0) message.append("/").append(len);
}
}
After Change
}
else {
if (selectionModel.hasSelection()) {
int selectionStart = selectionModel.getSelectionStart();
int selectionEnd = selectionModel.getSelectionEnd();
if (selectionEnd > selectionStart) {
message.append(selectionEnd - selectionStart).append(" chars");
int selectionStartLine = editor.getDocument().getLineNumber(selectionStart);
int selectionEndLine = editor.getDocument().getLineNumber(selectionEnd);